/*!
 * Polkascan Explorer UI
 * Copyright (C) 2018-2022 Polkascan Foundation (NL)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

ps-top-bar {
  display: flex;
  justify-content: center;
  background: var(--ps-top-bar-bg-color);
  color: var(--ps-top-bar-text-color);

  .mat-mdc-button.mat-unthemed {
    color: #fff;
  }
}

.ps-topbar-container {
  display: flex;
  height: 50px;
  align-items: center;
  justify-content: flex-end;
}

.ps-top-bar-brand {
  display: flex;
  margin-right: auto;
}

.ps-top-bar-brand .logo-text {
  fill: var(--ps-top-bar-logo-text-color);
}

.ps-top-bar-brand .logo-circle {
  fill: var(--ps-top-bar-logo-dot-color);
}

.ps-top-bar-brand svg {
  width: 93px;
  height: 40px;
  order: 0;
}

.ps-top-bar-brand-img {
  height: 100%;
  object-fit: contain;
}

@keyframes breathe {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.connecting {
  animation: breathe 1s infinite;
}

.network-polkadot {
}

.ps-top-bar-network-selector,
.ps-top-bar-network-option {
  &:before {
    content: '';
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    vertical-align: middle;
    height: 1rem;
    width: 1rem;
    position: static;
    border: none;
  }
}

.ps-top-bar-network-option--polkadot {
  &:before {
    display: inline-block;
    margin-right: 0.3rem;
    background-image: url('../../../assets/chains/polkadot.svg');
  }
}

.ps-top-bar-network-option--kusama {
  &:before {
    display: inline-block;
    margin-right: 0.3rem;
    background-image: url('../../../assets/chains/kusama.svg');
  }
}

.ps-top-bar-network-option--rococo {
  &:before {
    display: inline-block;
    margin-right: 0.3rem;
    background-image: url('../../../assets/chains/rococo.svg');
  }
}

.github-link {
  margin-left: 16px;
  padding-top: 6px;

  path {
    fill: white;
  }
}
